package com.wyh.tran;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.io.IOException;

@Service
public class Main {
    @Transactional
    public void func(){
        int a = 0;
        while (a != 8) {
            a++;
        }
        int n = 1/0;
    }
}
